# for

# 计数循环
# for loop in range(10):  # 循环十次
#     print(loop)

# range(start, stop, step)

# print(list(range(0, 10, 2)))

# 多参数循环
i = {
    "name": '木舟',
    "age": 19,
    "sex": "male"
}

# for item in i.items():
#     print(item)

# for key, value in i.items():
#     print(key, ":", value)

# lst = [
#     (1, 2, 3),
#     (4, 5, 6),
#     (7, 8, 9)
# ]
#
# for i, d, x in lst:
#     print(i, d, x)

# 解包
# i = [1, 2]
#
# a, b = i
#
# print(a)
# print(b)

# lst = [
#     (1, 2, 3),
#     (4, 5, 6),
#     (7, 8, 9)
# ]
#
# for i in lst:
#     for p in i:
#         print(p)